home *** CD-ROM | disk | FTP | other *** search
/ APDL Other Worlds / APDL Other Worlds Collection.iso / SF3000 / Extras / CBlibrary / h / FedCompMT < prev    next >
Encoding:
Text File  |  2003-09-13  |  1.6 KB  |  44 lines

  1. /*
  2.  * CBLibrary - FedCompMT
  3.  * Copyright (C) 2003  Chris Bazley
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Lesser General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2.1 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Lesser General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Lesser General Public
  16.  * License along with this library; if not, write to the Free Software
  17.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  */
  19.  
  20. /* 
  21.   Fednet-style file compression/decompression (stand alone)
  22.   Original version by David O'Shea
  23.   All applications using this component need the following messages:
  24.   OpenInFail, ReadFail, BitStream, OpenOutFail, WriteFail
  25. */
  26.  
  27. #ifndef FedCompMT_h
  28. #define FedCompMT_h
  29.  
  30. #include <stdbool.h> 
  31. #include <stdio.h>
  32. #include "kernel.h"
  33. #include "flex.h"
  34.  
  35. extern unsigned int get_decomp_perc(FILE ***handle);
  36. extern unsigned int get_comp_perc(FILE ***handle);
  37.  
  38. extern _kernel_oserror *load_compressedM(const char *filepath, flex_ptr buffer_anchor, const volatile bool *timeup, FILE ***handle);
  39.  
  40. /* Save specified memory to file, and set filetype */ 
  41. extern _kernel_oserror *save_compressedM(const char *filepath, int filetype, flex_ptr buffer_anchor, const volatile bool *timeup, FILE ***handle);
  42.  
  43. #endif
  44.